package org.product



import grails.test.mixin.*
import org.junit.*

/**
 * See the API for {@link grails.test.mixin.domain.DomainUnitTestMixin} for usage instructions
 */
@TestFor(Product)
class ProductTests {

    void testSomething() {
		
		//def listdata = Product.executeQuery("select p from Product p WHERE p.productType.id=1")
		def listdata= Product.createCriteria().list(){
			productType{
				eq("id", 2)
				
			}
		}
		print listdata.size()
    }
}
